@extends('Admin.base')
@section('css')
    <link rel="stylesheet" href="/Admin/layuiadmin/css/extend/formSelects-v4.css" media="all">
@endsection
@section('content')
    <div class="layui-card">
        <div class="layui-card-body">
            <form class="layui-form" id="layui-form" action="/admin/order/deliverSave" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label">收货人</label>
                    <div class="layui-input-block" >
                       {{$order->user_name}}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">联系电话</label>
                    <div class="layui-input-block" >
                        {{$order->user_phone}}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">收货地区</label>
                    <div class="layui-input-block" >
                        {{$order->user_region}}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">详细地址</label>
                    <div class="layui-input-inline">
                        {{$order->user_address}}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">快递公司</label>
                    <div class="layui-input-inline">
                        <select name="express_name" id="">
                            @foreach(\App\Models\Order::EXPRESS as $key=>$value)
                                <option value="{{$key}}">{{$value}}</option>
                            @endforeach
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">快递单号</label>
                    <div class="layui-input-inline">
                        <input type="text" name = "express_order" class="layui-input">
                    </div>
                </div>
                <input type="hidden" name="id" value="{{$id}}">
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        {{csrf_field()}}
                        {{--                    {{method_field('PUT')}}--}}
                        <button type="reset" class="layui-btn layui-btn-primary">取消</button>
                        <button type="submit" class="layui-btn" lay-submit="" lay-filter="layui-form-submit">确认发货</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection
@section('script')
    <script src="/js/ajax.js"></script>
@endsection
